package model;

import java.util.ArrayList;
import java.util.List;

import javax.swing.DefaultListModel;

public class SpeakerListModel extends DefaultListModel<Speaker> {

	public List<Speaker> getSpeakers() {
		List<Speaker> result = new ArrayList<>(size());
		for (int i = 0; i < size(); i++) {
			result.add(get(i));
		}
		return result;
	}


}
